package org.zh.sh.util.http;

import java.nio.charset.StandardCharsets;

public interface HttpStatic {
     String ALL_VALUE = "*/*";
     String APPLICATION_ATOM_XML_VALUE = "application/atom+xml";
     String APPLICATION_CBOR_VALUE = "application/cbor";
     String APPLICATION_FORM_URLENCODED_VALUE = "application/x-www-form-urlencoded"; // 表单传输协议
     String APPLICATION_GRAPHQL_RESPONSE_VALUE = "application/graphql-response+json";
     String APPLICATION_JSON_VALUE = "application/json";                        //json文本传输协议
     String APPLICATION_JSON_UTF8_VALUE = "application/json;charset=UTF-8";
     String APPLICATION_OCTET_STREAM_VALUE = "application/octet-stream";
     String APPLICATION_PDF_VALUE = "application/pdf";
     String APPLICATION_PROBLEM_JSON_VALUE = "application/problem+json";
     String APPLICATION_PROBLEM_XML_VALUE = "application/problem+xml";
     String APPLICATION_PROTOBUF_VALUE = "application/x-protobuf";
     String APPLICATION_XML_VALUE = "application/xml";
     String APPLICATION_YAML_VALUE = "application/yaml";
     String APPLICATION_NDJSON_VALUE = "application/x-ndjson";
     String APPLICATION_XHTML_XML_VALUE = "application/xhtml+xml";
     String APPLICATION_RSS_XML_VALUE = "application/rss+xml";
     String IMAGE_JPEG_VALUE = "image/jpeg";
     String IMAGE_PNG_VALUE = "image/png";
     String IMAGE_GIF_VALUE = "image/gif";
     String MULTIPART_FORM_DATA_VALUE = "multipart/form-data";                      //表单传输协议
     String MULTIPART_MIXED_VALUE = "multipart/mixed";
     String MULTIPART_RELATED_VALUE = "multipart/related";
     String TEXT_EVENT_STREAM_VALUE = "text/event-stream";
     String TEXT_HTML_VALUE = "text/html";
     String TEXT_MARKDOWN_VALUE = "text/markdown";
     String TEXT_PLAIN_VALUE = "text/plain";
     String TEXT_XML_VALUE = "text/xml";
     String charset = ";charset=UTF-8";

     String accept = "Accept";//发送请求的 告诉服务器    他们接收数据时支持的数据类型
     String contentType = "Content-Type";//发送请求的 告诉服务器  这个数据是什么数据类型
     String acceptCharset = "Accept-Charset";
     String utf8 = "UTF-8";

     byte[] error404 = "你的请求路径不存在！！！！".getBytes(StandardCharsets.UTF_8);
     byte[] error405 = "服务器不支持请求使用的方法".getBytes(StandardCharsets.UTF_8);
     byte[] error500 = "服务器内部发生未知错误".getBytes(StandardCharsets.UTF_8);


}
